package com.handpay.zztong.hp.main.model.discovery;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

/**
 * Created by fplei on 2017/5/9.
 * 发现页面功能数据
 */

public class DiscoveryModleBean extends ResponseBean {
    //tag
    private String Tag;
    //条目icon
    private int item_icon;
    //条目标题
    private String item_title;
    //是否新数据
    private int isNewFlag;
    //预备字段
    private String prepareField;
    //class target
    private Class clazz;

    public String getTag() {
        return Tag;
    }

    public int getItem_icon() {
        return item_icon;
    }

    public String getItem_title() {
        return item_title;
    }

    public int getIsNewFlag() {
        return isNewFlag;
    }

    public String getPrepareField() {
        return prepareField;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setTag(String tag) {
        Tag = tag;
    }

    public void setItem_icon(int item_icon) {
        this.item_icon = item_icon;
    }

    public void setItem_title(String item_title) {
        this.item_title = item_title;
    }

    public void setIsNewFlag(int isNewFlag) {
        this.isNewFlag = isNewFlag;
    }

    public void setPrepareField(String prepareField) {
        this.prepareField = prepareField;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.Tag);
        dest.writeInt(this.item_icon);
        dest.writeString(this.item_title);
        dest.writeInt(this.isNewFlag);
        dest.writeString(this.prepareField);
        dest.writeSerializable(this.clazz);
    }

    public DiscoveryModleBean() {
    }

    protected DiscoveryModleBean(Parcel in) {
        super(in);
        this.Tag = in.readString();
        this.item_icon = in.readInt();
        this.item_title = in.readString();
        this.isNewFlag = in.readInt();
        this.prepareField = in.readString();
        this.clazz = (Class) in.readSerializable();
    }

    public static final Creator<DiscoveryModleBean> CREATOR = new Creator<DiscoveryModleBean>() {
        @Override
        public DiscoveryModleBean createFromParcel(Parcel source) {
            return new DiscoveryModleBean(source);
        }

        @Override
        public DiscoveryModleBean[] newArray(int size) {
            return new DiscoveryModleBean[size];
        }
    };

    @Override
    public String toString() {
        return "DiscoveryModleBean{" +
                "Tag='" + Tag + '\'' +
                ", item_icon=" + item_icon +
                ", item_title='" + item_title + '\'' +
                ", isNewFlag=" + isNewFlag +
                ", prepareField='" + prepareField + '\'' +
                ", clazz=" + clazz +
                '}';
    }
}
